package com.wgchao.amc.mapstruct.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import java.io.Serializable;

import com.wgchao.amc.common.validate.Assign;
import com.wgchao.amc.common.validate.Save;
import com.wgchao.amc.common.validate.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * @作者  wgchao
 * @时间 2019-10-30 
 * @用途  
 */

@AllArgsConstructor
@NoArgsConstructor
@Data
@JsonInclude(content = JsonInclude.Include.NON_NULL)
@ApiModel(value="SysBaseFuncDTO",description="功能信息")
public class SysBaseFuncDTO  implements Serializable {

	private static final long serialVersionUID =  375978585507563801L;

	/**
	 * 主键
	 */
	@NotNull(message = "主键缺失", groups = {Update.class})
	@ApiModelProperty(value="主键",name="id")
	private Long id;

	/**
	 * 功能名称
	 */
	@NotNull(message = "功能名称缺失", groups = {Save.class, Update.class})
	@ApiModelProperty(value="功能名称",name="funcName")
	private String funcName;

	/**
	 * 功能标示
	 */
	@NotNull(message = "功能标示缺失", groups = {Save.class, Update.class})
	@ApiModelProperty(value="功能标示",name="funcMark")
	private String funcMark;

	@NotNull(message = "菜单ID缺失", groups = {Save.class, Update.class})
	@ApiModelProperty(value="菜单ID",name="menuId")
	private Long menuId;

}
